package com.yudean.erp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yudean.erp.common.ServiceConstant;
import com.yudean.erp.entity.IdsPmProTech;
import com.yudean.erp.mapper.IdsPmProTechMapper;
import com.yudean.erp.service.IIdsPmProTechService;
import com.yudean.erp.vo.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 沈泽群
 * @since 2021-06-15
 */
@Service
public class IdsPmProTechServiceImpl extends ServiceImpl<IdsPmProTechMapper, IdsPmProTech> implements IIdsPmProTechService {
    @Autowired
    IdsPmProTechMapper idsPmProTechMapper;

    @Override
    public Response findByMultiCondition(HashMap<String,Object> map) {
        List<IdsPmProTech> idsPmProTeches = idsPmProTechMapper.selectByMap(map);
        return new Response(ServiceConstant.SERVICE_PRO_TECH_DATA,ServiceConstant.PUBLISH_SERVICE,idsPmProTeches);
    }

}
